<script>
  window.location = "http://www.a.com:" + location.port + "/auth-basic/index.html";
</script>
